package com.fingard.dsp.bank.reqrespobj.decontract;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.decontract.detail.ReqDeContractDetail;
import com.fingard.xml.XmlTextReader;

public class ReqDeContract extends RequestBase {
	private XmlTextReader xmlReader;
	public ReqDeContractDetail contractDetail = null;

	public ReqDeContract(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
		reqHeader = p_header;
		xmlReader = p_xmlReader;

		if (xmlReader.read(PATH_Detail)) {
			contractDetail = new ReqDeContractDetail(xmlReader.readedXElement);
		} else {
			throw new Exception("不存在节点：" + PATH_Detail);
		}
	}
}
